#include<stdio.h>
#include<windows.h>
#include<process.h>
unsigned int WINAPI Fun(LPVOID lpParamter)
{
	while(1)
	{
		printf("---Fun display!\n");
		Sleep(500);
	}
	return 0;
}
int main()
{
	HANDLE hThread;
	hThread = (HANDLE)_beginthreadex(NULL, 0, Fun, NULL, 0, NULL);
	while(1)
	{
		printf("main display!\n");
		Sleep(500);
	}
	CloseHandle(hThread);
	return 0;
}
